package com.wty.shop.controller.common;

import com.wty.shop.common.ServerResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


/**
 * @Author wangtengyu
 * @Create 2018-02-01-15:14
 */
@Controller
@RequestMapping("/error")
public class ErrorController {

    @RequestMapping("error_404.do")
    @ResponseBody
    public ServerResponse error_404(){
        return ServerResponse.createByErrorMessage("404错误找不到当前页面");
    }
}
